<%@page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<ul>
	<c:forEach var="room" items="${requestScope.model.getRooms()}" > 
	  <li>	
		  <c:url value="changeRoom" var="changeRoomUrl">
		  	<c:param name="roomId" value="${room.getId()}"/>
		  </c:url>		 
		  <c:choose >
			  <c:when test="${sessionScope.currentRoomId.equalsIgnoreCase( room.getId().toString() )}">
			  	<a class="activeroom" href="<c:url value="${changeRoomUrl}"/>"><b>${room.getRoomName()}</b></a>
			  </c:when>
			  <c:otherwise>
			  	<a href="<c:url value="${changeRoomUrl}"/>">${room.getRoomName()}</a>
			  </c:otherwise>
		  </c:choose>		  	      
	  </li>
	</c:forEach>
</ul>